﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Biblio.Domain
{
    [Table("Reserva")]
    public class Reserva
    {
        public Reserva(Socio s, Material m, int cant)
        {
            Socio = s;
            Material = m;
            CantidadDiasReserva = cant;
        }

        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        public Socio Socio { get; set; }
        public Material Material { get; set; }
        public int CantidadDiasReserva { get; set; }
    }
}
